package org.fh.controller.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.fh.domain.LampControl;
import org.fh.domain.LampStatus;
import org.fh.domain.ModeSwitch;
import org.fh.inductionLamp.impl.response.GetConfigResponse;
import org.fh.inductionLamp.impl.response.LampControlResponse;
import org.fh.inductionLamp.impl.response.ModeSwitchResponse;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2020/10/23 11:51
 */
@Api(value="竖屏页面配置管理")
public interface DataControllerApi {

    @ApiImplicitParams({
            @ApiImplicitParam(name = "srcId", value = "源id", dataType = "int", paramType = "path", required = true, defaultValue = "1"),
            @ApiImplicitParam(name = "destId", value = "目标id", dataType = "int", paramType = "path", required = true, defaultValue = "1")
    })
    GetConfigResponse getConfig(int srcId,int destId);
    @ApiOperation("修改配置模式")
    ModeSwitchResponse modeSwitch(ModeSwitch modeSwitch);
    @ApiOperation("更新配置")
    LampControlResponse lampController(LampControl lampControl);
    @ApiOperation("获取设备状态")
    LampStatus getLampStatus();
    @ApiImplicitParams({
            @ApiImplicitParam(name = "srcId", value = "源id", dataType = "int", paramType = "path", required = true, defaultValue = "1") })
    List<GetConfigResponse> getConfigAll(int srcId);
}
